﻿package  
{
	import flash.display.Sprite;
	import flash.events.Event;
	public class CustomEvent extends Event 
	{
		
		public static const RESTART:String = "restart";
		public static const START_FREE:String = "startFree";
		public static const START_POINT:String = "startPoint";
		
		public static const START_BONUS = "startBonus";
		public static const EXIT = "exit";
		public static const RETRY = "retry";
		
		public static const SCORE_UP = "scoreUp";
		
		public static const BONUS_OVER = "bonusOver";
		
		public static const ROTATE_LEFT = "rotateLeft";
		public static const ROTATE_RIGHT = "rotateRight";
		
		
		public static const DOUBLE_CHANCE_START = "doubleChanceStart";
		public static const DOUBLE_CHANCE_SUCCESS = "doubleChanceSuccess";
		public static const DOUBLE_CHANCE_FAIL = "doubleChanceFail";
		
		public static const REMOVE_BLOCK = "removeBlock";
		public static const REMOVE_BLOCK_BIG = "removeBlockBig";
		public static const REMOVE_ERASER = "removeEraser";
		public static const REMOVE_STAR = "removeStar";
		
		public static const COMBO_PLUS = "comboPlus";
		public static const KILL = "kill";
		
		
		public var upScore:Number;
		public var effectLevel:Sprite;
		public var obj:*;
		
		public function CustomEvent( type:String, _upScore:Number = 0, _effectLevel:Sprite = null, _obj:* = null)
		{
			super( type );
			this.upScore = _upScore;
			this.effectLevel = _effectLevel;
			this.obj = _obj;
			
		}
	}
}